$(document).ready(function() {
    $('.btn').mouseover(function() {
        $(this).css("background-color", "rgba(150,150,150,0.8)");
    });
    
    $('.btn').mouseleave(function() {
        $(this).css("background-color", "rgba(175,175,175,1.0)");
    });
    
    $('#signin').click(function(e) {
        e.preventDefault()
        $('.signinBox').slideToggle('fast'); 
    });
    
    $('.signinbtn').mouseover(function() {
        $(this).css("color","rgb(255,255,255)");
        $(this).css("background-color", "rgba(0,0,0,0.8)");
    });
    
    $('.signinbtn').mouseleave(function() {
        $(this).css("color","rgb(0,0,0)");
        $(this).css("background-color","rgba(255,255,255,0.5)");
    });
    
    $('#index_change_image').click(function(e) {
        e.preventDefault();
        $('#index_captcha').attr("src","php/visual-captcha.php?" + ((new Date()).getTime()));
    });
});

